package main

import "fmt"

func inRange(min float64, max float64, numbers ...float64) []float64 {
	var result []float64
	for _, number := range numbers {
		if number >= min && number <= max {
			result = append(result, number)
		}
	}
	return result

}

func main() {
	fmt.Println(inRange(1, 100, -12, -10, 0, 11, 22, 33, 123, 124)) //[11 22 33]
	fmt.Println(inRange(10, 100, -12, -10, 0, 1, 2, 13, 123, 124))  //[13]
}
